Skip to main content

XPDFViewer_GetImageSelectionRect

Type

function

Summary

Get the rect of image selection.

Syntax

XPDFViewer_GetImageSelectionRect(<viewerName>)

Description

If there is no image selection the function returns 0,0,0,0. Coordinates are in stack coordinates. Adjust the returned rect by the topLeft of the RECT property (viewport) to get coordinates relative to the PDF page.

The following errors may be thrown by the command:

  • XPDF_ERROR: incorrect number of parameters
  • XPDF_ERROR: PDF viewer not found

Parameters

NameTypeDescription

viewerName

string

The name of the viewer.

Examples

put XPDFViewer_GetImageSelectionRect("Document1") into theSelectionRect

Compatibility and Support

Introduced

LiveCode 1.0.0

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?